<?php

class Junction_Class {
	
	private $_name;
	
	private $_table;
	
	private $_properties;
	
	public function __construct($name, $table) {
		$this->_name = $name;
		$this->_table = $table;
		$this->_properties = array();
	}
	
	public function setProperty(Junction_Property $property) {
		$this->_properties[] = $property;
	}
	
	public function __toString() {
		$output = $this->_table;
		foreach ($this->_properties as $property) {
			$output .= " " . $property;
		}
		return $output;
	}
}
?>